package com.metering.purchaseServerAdmin.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.metering.purchaseServerAdmin.domain.DeptDO;
import com.metering.purchaseServerAdmin.domain.Tree;
/**
 * 部门管理
 * @ClassName: DeptService
 * @Description: 
 * @Author GA
 * @DateTime 2018年12月18日 上午11:42:04
 */
@Service
public interface DeptService {
	DeptDO get(Long deptId);
	
	List<DeptDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(DeptDO sysDept);
	
	int update(DeptDO sysDept);
	
	int remove(Long deptId);
	
	int batchRemove(Long[] deptIds);

	Tree<DeptDO> getTree();
	
	boolean checkDeptHasUser(Long deptId);
}
